import BasicLayout from '@/layouts/basic-layout'

const meta = {
  auth: true
}

const pre = 'settings/'

export default {
  path: '/settings',
  name: 'settings',
  redirect: {
    name: `${pre}basic`
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'basic',
      name: `${pre}basic`,
      meta: {
        ...meta,
        title: '基础设置',
        
      },
      component: () => import('@/pages/settings/basic')
    },
    {
      path: 'home',
      name: `${pre}home`,
      meta: {
        ...meta,
        title: '首页设置',
        
      },
      component: () => import('@/pages/settings/home')
    },
    {
      path: 'moduleset',
      name: `${pre}moduleset`,
      meta: {
        ...meta,
        title: '模块设置',
        
      },
      component: () => import('@/pages/settings/moduleset')
    },
    {
      path: 'videotype',
      name: `${pre}videotype`,
      meta: {
        ...meta,
        title: '视频类型',
        
      },
      component: () => import('@/pages/settings/videotype')
    },{
      path: 'wechattemplate',
      name: `${pre}wechattemplate`,
      meta: {
        ...meta,
        title: '微信提醒模板',
        
      },
      component: () => import('@/pages/settings/wechattemplate')
    },
    {
      path: 'schedule',
      name: `${pre}schedule`,
      meta: {
        ...meta,
        title: '班次管理',
        
      },
      component: () => import('@/pages/settings/schedule')
      },
      {
      path: 'appendix',
      name: `${pre}appendix`,
      meta: {
        ...meta,
        title: '附件管理',
        
      },
      component: () => import('@/pages/settings/appendix')
    },
    {
      path: 'tag',
      name: `${pre}tag`,
      meta: {
        ...meta,
        title: '标签设置',
        
      },
      component: () => import('@/pages/settings/tag')
    },
    {
      path: 'help',
      name: `${pre}help`,
      meta: {
        ...meta,
        title: '帮助中心'
      },
      component: () => import('@/pages/settings/help')
    },
    {
      path: 'power/role',
      name: `${pre}power/role`,
      meta: {
        ...meta,
        title: '角色'
      },
      component: () => import('@/pages/settings/power/role')
    },
    {
      path: 'power/person',
      name: `${pre}power/person`,
      meta: {
        ...meta,
        title: '人员'
      },
      component: () => import('@/pages/settings/power/person')
    }
    // {
    //     path: `development`,
    //     title: '开发设置',
    //     children: [
    //         {
    //             path: 'development/action',
    //             name: `${pre}development/action`,
    //             meta: {
    //               ...meta,
    //               title: '动作'
    //             },
    //             component: () => import('@/pages/settings/development/action')
    //           },
    //           {
    //             path: 'development/menu',
    //             name: `${pre}development/menu`,
    //             meta: {
    //               ...meta,
    //               title: '菜单'
    //             },
    //             component: () => import('@/pages/settings/development/menu')
    //           },
    //     ]
    //   }
  ]
}
